@font-face {
    font-family: 'Neulis';
    src: url('/fonts/neulis-sans-regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Neulis';
    src: url('/fonts/neulis-sans-medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Neulis Neue';
    src: url('/fonts/neulis-neue-bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Neulis', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #212121;
    min-height: 100vh;
    overflow-x: hidden;
}

.register-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.logo-container img {
    height: 30px;
    width: auto;
}

.register-card {
    background: #ffffff;
    border-radius: 32px;
    padding: 48px 32px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.register-title {
    font-family: 'Neulis Neue', 'Neulis', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #212121;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.register-subtitle {
    font-family: 'Neulis', sans-serif;
    font-size: 16px;
    color: #666666;
    line-height: 1.5;
    margin-bottom: 32px;
}

/* Buttons */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 24px;
    border-radius: 50px;
    font-family: 'Neulis', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
}

.btn-google-primary {
    background-color: #212121;
    color: #ffffff;
}

.btn-google-primary:hover {
    background-color: #333333;
    color: #ffffff;
}

.btn-google-outline {
    background-color: #ffffff;
    color: #212121;
    border: 1px solid #e0e0e0;
}

.btn-google-outline:hover {
    background-color: #f5f5f5;
    color: #212121;
}

.btn-google svg,
.btn-google img {
    width: 20px;
    height: 20px;
}

.btn-email {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 24px;
    border-radius: 50px;
    font-family: 'Neulis', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #f0f0f0;
    color: #666666;
    border: none;
    margin-top: 12px;
}

.btn-email:hover {
    background-color: #e5e5e5;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background-color: #e0e0e0;
}

/* Form Fields */
.form-group {
    margin-bottom: 16px;
    text-align: left;
}

.form-label {
    display: block;
    font-family: 'Neulis', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #212121;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    border: none;
    background-color: #f0f0f0;
    font-family: 'Neulis', sans-serif;
    font-size: 16px;
    color: #212121;
    outline: none;
    transition: all 0.2s ease;
}

.form-input::placeholder {
    color: #999999;
}

.form-input:focus {
    background-color: #e8e8e8;
}

.form-input.is-invalid {
    border: 2px solid #dc3545;
    background-color: #fff5f5;
}

.password-wrapper .form-input.is-invalid {
    border: 2px solid #dc3545;
    background-color: #fff5f5;
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 13px;
    margin-top: 8px;
    font-family: 'Neulis', sans-serif;
}

.password-wrapper {
    position: relative;
}

.password-wrapper .form-input {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: #666666;
}

.password-toggle svg {
    width: 22px;
    height: 22px;
}

/* Submit Button */
.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 24px;
    border-radius: 50px;
    font-family: 'Neulis', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #212121;
    color: #ffffff;
    border: none;
    margin-top: 8px;
}

.btn-submit:hover {
    background-color: #333333;
}

.btn-submit:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Terms */
.terms-text {
    font-family: 'Neulis', sans-serif;
    font-size: 13px;
    color: #999999;
    line-height: 1.5;
    margin-top: 24px;
}

.terms-text a {
    color: #999999;
    text-decoration: underline;
}

.terms-text a:hover {
    color: #666666;
}

/* Login Link */
.login-link-container {
    margin-top: 24px;
    font-family: 'Neulis', sans-serif;
    font-size: 15px;
    color: #ffffff;
}

.login-link-container a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
}

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

/* Animation for form transition */
.form-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Initial state (Google + Email button) */
#initial-state {
    display: block;
}

#form-state {
    display: none;
}

/* Google Icon colored */
.google-icon {
    width: 20px;
    height: 20px;
}

/* Responsive */
@media (max-width: 480px) {
    .register-card {
        padding: 36px 24px;
        border-radius: 24px;
    }

    .register-title {
        font-size: 24px;
    }

    .register-subtitle {
        font-size: 14px;
    }
}
