* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.register-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.logo-container {
    margin-bottom: 30px;
}

.logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 15px;
}

.brand-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.subtitle {
    color: #666;
    font-size: 16px;
    margin-bottom: 40px;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-input {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: white;
}

.form-input:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.form-input:hover {
    border-color: #ccc;
}

.form-input.error {
    border-color: #ea4335;
    background-color: #fff8f8;
}

.form-input.success {
    border-color: #34a853;
    background-color: #f8fff8;
}

.password-requirements {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    line-height: 1.4;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 2px;
}

.requirement.valid {
    color: #34a853;
}

.requirement.invalid {
    color: #ea4335;
}

.register-btn {
    background-color: #34a853;
    color: white;
    border: none;
    padding: 18px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    position: relative;
}

.register-btn:hover {
    background-color: #2d8f44;
    transform: translateY(-2px);
}

.register-btn:active {
    transform: translateY(0);
}

.register-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.register-btn.loading {
    color: transparent;
}

.register-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid white;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.resend-btn {
    background: none;
    border: none;
    color: #4285f4;
    cursor: pointer;
    text-decoration: underline;
    font-size: 14px;
    padding: 10px;
    transition: all 0.3s ease;
}

.resend-btn:hover {
    color: #357ae8;
}

.resend-btn:disabled {
    color: #ccc;
    cursor: not-allowed;
}

.terms {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.terms a {
    color: #4285f4;
    text-decoration: none;
}

.terms a:hover {
    text-decoration: underline;
}

.divider {
    margin: 30px 0;
    position: relative;
    text-align: center;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
    z-index: 1;
}

.divider span {
    background: white;
    padding: 0 20px;
    color: #666;
    font-size: 14px;
    position: relative;
    z-index: 2;
}

.login-link {
    text-align: center;
    color: #666;
    font-size: 14px;
}

.login-link a {
    color: #4285f4;
    text-decoration: none;
    font-weight: 500;
}

.login-link a:hover {
    text-decoration: underline;
}

/* OTP Input Styles */
#otpInput {
    text-align: center;
    font-size: 24px;
    letter-spacing: 8px;
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .register-container {
        padding: 30px 25px;
        max-width: 100%;
    }

    .brand-title {
        font-size: 28px;
    }

    .subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .logo {
        width: 50px;
        height: 50px;
    }

    .form-input {
        padding: 12px;
        font-size: 16px;
    }

    .register-btn {
        padding: 15px;
    }

    .register-form {
        gap: 18px;
    }

    #otpInput {
        font-size: 20px;
        letter-spacing: 6px;
    }
}

/* Input validation styles */
.form-input.error:focus {
    box-shadow: 0 0 0 3px rgba(234, 67, 53, 0.1);
}

.form-input.success:focus {
    box-shadow: 0 0 0 3px rgba(52, 168, 83, 0.1);
}