/* Auth Pages Styles */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8c918d 0%, #acafad 100%);
    padding: 20px;
}

.auth-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 450px;
    width: 100%;
    padding: 40px;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.auth-subtitle {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

.auth-form .form-group {
    position: relative;
    margin-bottom: 20px;
}

.auth-form .form-control {
    height: 50px;
    padding: 12px 45px 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    width: 100%;
}

.auth-form .form-control:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.auth-form .ic-auth {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.auth-form .ic-auth:hover {
    color: #667eea;
}

.auth-form .form-text {
    text-align: right;
    margin-top: 5px;
}

.auth-form .form-text a {
    color: #667eea;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-form .form-text a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.auth-form .btn-auth {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #28a745 0%, #155724 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.auth-form .btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

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

.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

.auth-footer-text {
    color: #666;
    font-size: 14px;
}

.auth-footer-text a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    margin-left: 5px;
    transition: color 0.3s ease;
}

.auth-footer-text a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.auth-footer-text .badge-free {
    position: relative;
    display: inline-block;
}

.auth-footer-text .badge-free::before {
    content: "Free";
    position: absolute;
    top: -8px;
    right: -20px;
    font-size: 10px;
    font-style: italic;
    font-weight: 500;
    color: red;
    background: #fff;
    padding: 2px 4px;
    border-radius: 3px;
}

/* reCAPTCHA container */
#html_element {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 576px) {
    .auth-card {
        padding: 30px 20px;
    }

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

    .auth-form .form-control {
        height: 45px;
        font-size: 14px;
    }

    .auth-form .btn-auth {
        height: 45px;
        font-size: 15px;
    }
}

/* Logo in auth pages (optional) */
.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo img {
    max-width: 120px;
    height: auto;
}

/* Alert messages */
.auth-alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.auth-alert-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

.auth-alert-success {
    background: #efe;
    border: 1px solid #cfc;
    color: #3c3;
}

/* Loading Spinner */
.btn-auth.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn-auth.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Disable button when loading */
.btn-auth:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}