/* Neumorphism Login Form - Deep Blue Dark Mode */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1f2c;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    line-height: 1.6;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: #1a1f2c;
    border-radius: 30px;
    padding: 50px 40px;
    box-shadow:
            20px 20px 60px #272727,
            -20px -20px 60px #353535;
    position: relative;
    transition: all 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.neu-icon {
    width: 150px;
    height: 150px;
    margin: 0 auto 24px;
    background: #1a1f2c;
    border-radius: 50%;
    padding: 5px;
    box-shadow:
            8px 8px 20px #13161f,
            -8px -8px 20px #212839;
}

.neu-icon:hover {
    box-shadow:
            4px 4px 10px #13161f,
            -4px -4px 10px #212839,
            inset 4px 4px 10px #13161f,
            inset -4px -4px 10px #212839;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.icon-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
}

.icon-inner svg {
    width: 100%;
    height: 100%;
}

.login-header h2 {
    color: #e2e8f0;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-header p {
    color: #718096;
    font-size: 15px;
    font-weight: 400;
}

/* Neumorphic Input Styles */
.form-group {
    margin-bottom: 28px;
    position: relative;
}

.neu-input {
    position: relative;
    background: #1a1f2c;
    border-radius: 15px;
    box-shadow:
            inset 8px 8px 16px #13161f,
            inset -8px -8px 16px #212839;
    transition: all 0.3s ease;
}

.neu-input:focus-within {
    box-shadow:
            inset 4px 4px 8px #13161f,
            inset -4px -4px 8px #212839;
}

.neu-input input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 20px 45px;
    text-align: center;
    color: #cbd5e0;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
    text-transform: none; /* garante sem maiúsculo */
}

.neu-input input::placeholder {
    color: transparent;
}

.neu-input input:focus + label,
.neu-input input:not(:placeholder-shown) + label {
    opacity: 0;
    visibility: hidden;
}

.neu-input label {
    position: absolute;
    left: 55px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    transition: all 0.2s ease;
    color: #718096;
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #4a5568;
    transition: all 0.3s ease;
}

.input-icon svg {
    width: 100%;
    height: 100%;
}

.neu-input:focus-within .input-icon {
    color: #c4c5c6;
}

.password-group {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 60px;
}

.neu-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%) !important;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    box-shadow: none;
    width: 35px;
    height: 35px;
    cursor: pointer;
    color: #9d9fa3;
    transition: all 0.3s ease;
}

.neu-toggle:hover {
    color: #767878;
    background: transparent;
    box-shadow: none;
}

.neu-toggle:active {
    transform: translateY(-50%) scale(0.95) !important;
}

.neu-toggle svg {
    width: 18px;
    height: 18px;
}

.eye-closed {
    display: none;
}

.neu-toggle.show-password .eye-open {
    display: none;
}

.neu-toggle.show-password .eye-closed {
    display: block;
}

/* Neumorphic Button */
.neu-button {
    width: 100%;
    background: #1a1f2c;
    border: none;
    border-radius: 15px;
    padding: 18px 32px;
    color: #718096;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    margin-bottom: 30px;
    box-shadow:
            8px 8px 20px #13161f,
            -8px -8px 20px #212839;
    transition: all 0.3s ease;
    overflow: hidden;
}

.neu-button:hover {
    transform: translateY(-2px);
    color: #f1f4f6;
    box-shadow:
            12px 12px 30px #13161f,
            -12px -12px 30px #212839;
}

.neu-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 179, 237, 0.1), transparent);
    transition: left 0.5s ease;
}

.neu-button:hover::before {
    left: 100%;
}

.neu-button:active {
    transform: translateY(0);
    box-shadow:
            inset 4px 4px 10px #13161f,
            inset -4px -4px 10px #212839;
}

.btn-text {
    position: relative;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.neu-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #2d3748;
    border-top: 3px solid #0a0a0b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.neu-button.loading .btn-text {
    opacity: 0;
}

.neu-button.loading .btn-loader {
    opacity: 1;
}

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

.divider-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #a3abbc, transparent);
}

.divider span {
    color: #4a5568;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.signup-link {
    text-align: center;
}

.signup-link p {
    color: #4a5568;
    font-size: 14px;
}

.signup-link a {
    color: #718096;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.signup-link a:hover {
    color: #efefed;
}

/* Mensagem de erro */
.error-message {
    color: #ccad3a;
    font-size: 12px;
    font-weight: 500;
    margin-top: 8px;
    margin-left: 20px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* Erro borda do campo */
.form-group.error .neu-input {
    box-shadow:
            inset 8px 8px 16px #2f384e,
            inset -8px -8px 16px #212839,
            0 0 0 2px #fdf2c4;
}

/* Success Message */
.success-message {
    display: none;
    text-align: center;
    padding: 40px 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.success-message.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.success-message .neu-icon {
    background: #1a1f2c;
    color: #72767c;
    margin-bottom: 20px;
}

.success-message h3 {
    color: #767a87;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.success-message p {
    color: #718096;
    font-size: 14px;
}

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

    .login-card {
        padding: 35px 25px;
        border-radius: 20px;
    }

    .login-header h2 {
        font-size: 1.75rem;
    }

    .neu-input input {
        padding: 18px 20px;
        padding-left: 50px;
    }

    .neu-input label {
        left: 50px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}