/* General Styles */
body {
    font-family: 'Inter', sans-serif; /* Modern font */
    background-color: #f4f7f6; /* Soft background */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 400px; /* Max width for larger screens */
    padding: 20px;
    box-sizing: border-box;
}

.card {
    background-color: #ffffff;
    border-radius: 12px; /* Rounded corners */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); /* Subtle shadow */
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Site and Form Titles */
.site-title {
    font-family: 'Roboto', sans-serif; /* A slightly different font for emphasis */
    font-size: 2.2em;
    font-weight: 600;
    color: #2c3e50; /* Darker blue-gray */
    margin-bottom: 10px;
}

.form-title {
    font-size: 1.6em;
    font-weight: 600;
    color: #34495e; /* Slightly lighter blue-gray */
    margin-bottom: 30px;
}

/* Form Elements */
.input-group {
    width: 100%;
    margin-bottom: 25px;
    text-align: left; /* Align labels to the left */
}

.input-group label {
    display: block;
    font-size: 0.95em;
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
}

.input-group input[type="tel"],
.input-group input[type="email"],
.input-group input[type="password"],
.input-group input[type="text"] {
    width: calc(100% - 24px); /* Adjust for padding */
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px; /* Rounded input fields */
    font-size: 1em;
    outline: none; /* Remove outline on focus */
    transition: border-color 0.3s ease;
}

.input-group input[type="tel"]:focus,
.input-group input[type="password"]:focus,
.input-group input[type="text"]:focus {
    border-color: #3498db; /* Highlight on focus */
}

/* Phone Input Wrapper */
.phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 0 15px;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
}

.phone-input-wrapper:focus-within {
    border-color: #3498db;
}

.country-code {
    font-size: 1em;
    color: #777;
    margin-right: 10px;
    flex-shrink: 0; /* Prevent shrinking */
}

.phone-input-wrapper input[type="tel"] {
    border: none; /* Remove border from input */
    padding: 12px 0; /* Adjust padding */
    flex-grow: 1; /* Allow input to grow */
    background: transparent; /* Transparent background */
    outline: none;
}

/* Nickname Code Wrapper */
.nickname-code-wrapper {
    display: flex;
    align-items: center;
}

.nickname-code-wrapper input[type="text"] {
    flex-grow: 1; /* Allow input to take available space */
    /* margin-right: 10px; Space between input and button */
}

/* Nickname Code Wrapper */
.email-code-wrapper {
    display: flex;
    align-items: center;
}

.email-code-wrapper input[type="email"] {
    flex-grow: 1; /* Allow input to take available space */
    /* margin-right: 10px; Space between input and button */
}

/* Nickname Code Wrapper */
.password-code-wrapper {
    display: flex;
    align-items: center;
}

.password-code-wrapper input[type="password"] {
    flex-grow: 1; /* Allow input to take available space */
    /* margin-right: 10px; Space between input and button */
}

/* Verification Code Wrapper */
.verification-code-wrapper {
    display: flex;
    align-items: center;
}

.verification-code-wrapper input[type="text"] {
    flex-grow: 1; /* Allow input to take available space */
    margin-right: 10px; /* Space between input and button */
}

.send-code-btn {
    background-color: #e74c3c; /* Reddish color */
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap; /* Prevent button text from wrapping */
    flex-shrink: 0; /* Prevent shrinking */
}

.send-code-btn:hover {
    background-color: #c0392b; /* Darker red on hover */
}

.send-code-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background-color: #2ecc71; /* Green color */
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 15px;
}

.submit-btn:hover {
    background-color: #27ae60; /* Darker green on hover */
}

/* Login Link */
.login-link {
    font-size: 0.9em;
    color: #777;
    margin-top: 25px;
}

.login-link a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .card {
        padding: 25px;
    }

    .site-title {
        font-size: 1.8em;
    }

    .form-title {
        font-size: 1.4em;
        margin-bottom: 25px;
    }

    .input-group {
        margin-bottom: 20px;
    }

    .send-code-btn,
    .submit-btn {
        font-size: 0.95em;
    }
}