/* DAISY - Authentication Pages Stylesheet */

:root {
    --primary: #932136;
    --secondary: #870820;
    --success: #4caf50;
    --warning: #ff9800;
    --danger: #f44336;
    --info: #2196f3;
    --dark: #2c3e50;
    --light: #f5f7fa;
}

/* Auth Layout */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.auth-wrapper::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.auth-wrapper::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Auth Container */
.auth-container {
    width: 100%;
    max-width: 1000px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    z-index: 1;
    display: flex;
}

/* Auth Side - Left Panel */
.auth-side {
    flex: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auth-side::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.auth-logo {
    width: 170px;
    height: 70px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.auth-logo .auth-logo-brand {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

.auth-side h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.auth-side p {
    font-size: 16px;
    opacity: 0.95;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.auth-features {
    margin-top: 40px;
    text-align: left;
    position: relative;
    z-index: 1;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.auth-feature-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.auth-feature-text h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.auth-feature-text p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

/* Auth Content - Right Panel */
.auth-content {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-header {
    margin-bottom: 40px;
}

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

.auth-header p {
    font-size: 15px;
    color: #666;
    margin: 0;
}

/* Form Styles */
.auth-form .form-group {
    margin-bottom: 25px;
}

.auth-form label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.auth-form .form-control {
    height: 50px;
    padding: 12px 20px;
    font-size: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.auth-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(147, 33, 54, 0.15);
}

.auth-form .form-control.is-invalid {
    border-color: var(--danger);
}

.auth-form .form-control.is-invalid:focus {
    box-shadow: 0 0 0 0.2rem rgba(244, 67, 54, 0.15);
}

.auth-form .form-control.is-valid {
    border-color: var(--success);
}

.auth-form .form-control.is-valid:focus {
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.15);
}

.invalid-feedback {
    font-size: 13px;
    margin-top: 5px;
}

/* Password Input Group */
.password-input-group {
    position: relative;
}

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

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    font-size: 18px;
    transition: all 0.2s ease;
}

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

/* Password Strength */
.password-strength {
    margin-top: 10px;
}

.strength-bar {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-bar-fill {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-bar-fill.weak {
    width: 33.33%;
    background: var(--danger);
}

.strength-bar-fill.medium {
    width: 66.66%;
    background: var(--warning);
}

.strength-bar-fill.strong {
    width: 100%;
    background: var(--success);
}

.strength-text {
    font-size: 12px;
    font-weight: 600;
}

.strength-text.weak {
    color: var(--danger);
}

.strength-text.medium {
    color: var(--warning);
}

.strength-text.strong {
    color: var(--success);
}

/* Checkbox & Radio */
.auth-form .form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-form .form-check-input {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    cursor: pointer;
}

.auth-form .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.auth-form .form-check-label {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    margin: 0;
}

/* Buttons */
.btn-auth-primary {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    color: white;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-auth-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(147, 33, 54, 0.3);
}

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

.btn-auth-secondary {
    width: 100%;
    height: 50px;
    background: white;
    border: 2px solid #e9ecef;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-auth-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #f8f9fa;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e9ecef;
}

.auth-divider span {
    font-size: 14px;
    color: #999;
    font-weight: 500;
}

/* Social Buttons */
.social-login {
    display: flex;
    gap: 15px;
}

.btn-social {
    flex: 1;
    height: 50px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-social.google:hover {
    border-color: #ea4335;
    color: #ea4335;
}

.btn-social.facebook:hover {
    border-color: #1877f2;
    color: #1877f2;
}

.btn-social.github:hover {
    border-color: #333;
    color: #333;
}

/* Auth Footer */
.auth-footer {
    margin-top: 30px;
    text-align: center;
}

.auth-footer p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

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

/* Alert Messages */
.auth-alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.auth-alert.success {
    background: #e8f5e9;
    color: var(--success);
    border: 1px solid var(--success);
}

.auth-alert.error {
    background: #ffebee;
    color: var(--danger);
    border: 1px solid var(--danger);
}

.auth-alert.info {
    background: #e3f2fd;
    color: var(--info);
    border: 1px solid var(--info);
}

.auth-alert-icon {
    font-size: 20px;
}

/* Loading State */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

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

.btn-loading span {
    visibility: hidden;
}

/* Terms & Privacy */
.auth-terms {
    font-size: 13px;
    color: #999;
    margin-top: 20px;
    line-height: 1.6;
}

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

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

/* Back Button */
.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 30px;
    transition: all 0.2s ease;
}

.auth-back:hover {
    color: var(--primary);
    gap: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        max-width: 500px;
    }

    .auth-side {
        padding: 40px 30px;
    }

    .auth-side h2 {
        font-size: 24px;
    }

    .auth-features {
        display: none;
    }

    .auth-content {
        padding: 40px 30px;
    }

    .auth-header h1 {
        font-size: 24px;
    }

    .social-login {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .auth-wrapper {
        padding: 15px;
    }

    .auth-content {
        padding: 30px 20px;
    }

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

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

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

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

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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