/* Authentication Pages Styles */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.auth-bg-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 20%;
    animation-delay: -10s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    bottom: 30%;
    left: 15%;
    animation-delay: -15s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(20px) rotate(240deg);
    }
}

.auth-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
    padding: 20px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInDown 0.6s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--white);
    gap: 15px;
}

.auth-logo .logo-icon {
    font-size: 3.5rem;
    animation: pulse 2s infinite;
}

.auth-logo .logo-text h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.auth-logo .logo-text p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.auth-card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-card-header h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.auth-card-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.auth-form {
    margin-top: 1.5rem;
}

.password-input-group {
    position: relative;
}

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

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--primary-color);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--medium-gray);
    border-radius: 3px;
    margin-right: 8px;
    position: relative;
    transition: var(--transition);
}

.checkbox-label input:checked + .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.btn-auth {
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    margin-top: 1rem;
}

.btn-block {
    width: 100%;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--medium-gray);
}

.auth-divider span {
    padding: 0 1rem;
}

.social-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-google {
    background: #db4437;
    color: white;
    border: none;
    transition: var(--transition);
}

.btn-google:hover {
    background: #c23321;
    transform: translateY(-1px);
}

.btn-microsoft {
    background: #00a4ef;
    color: white;
    border: none;
    transition: var(--transition);
}

.btn-microsoft:hover {
    background: #0088cc;
    transform: translateY(-1px);
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--white);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.auth-footer a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.auth-footer .copyright {
    margin-top: 1rem;
    opacity: 0.8;
}

.terms-check {
    display: flex;
    align-items: flex-start;
    margin: 1.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.terms-check input[type="checkbox"] {
    margin-top: 4px;
    margin-right: 10px;
    flex-shrink: 0;
}

.terms-check a {
    color: var(--primary-color);
    text-decoration: none;
}

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

.password-strength {
    margin-top: 10px;
}

.strength-meter {
    height: 5px;
    background: var(--light-gray);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 3px;
}

.strength-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: right;
}

/* Animations */
.slide-up {
    animation: slideUp 0.5s ease;
}

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

/* Responsive Design */
@media (max-width: 576px) {
    .auth-container {
        padding: 10px;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
    }
    
    .auth-logo {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .auth-logo .logo-icon {
        font-size: 2.5rem;
    }
    
    .auth-logo .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .social-auth {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .auth-bg-animation {
        display: none;
    }
}