/* Cenvigo Authentication Pages Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.auth-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    height: 100vh;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #455a64 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Animated background elements */
.bg-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.floating-shape {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

    .floating-shape:nth-child(1) {
        top: 10%;
        left: 10%;
        width: 80px;
        height: 80px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        animation-delay: 0s;
    }

    .floating-shape:nth-child(2) {
        top: 70%;
        right: 15%;
        width: 60px;
        height: 60px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        animation-delay: 2s;
    }

    .floating-shape:nth-child(3) {
        top: 30%;
        right: 30%;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        animation-delay: 4s;
    }

    .floating-shape:nth-child(4) {
        bottom: 20%;
        left: 20%;
        width: 100px;
        height: 100px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 50%;
        animation-delay: 1s;
    }

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.auth-container {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.5);
    padding: 60px 50px;
    width: 100%;
    max-width: 460px;
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

    .logo img {
        height: 70px;
        width: auto;
        filter: brightness(0) saturate(100%) invert(19%) sepia(8%) saturate(2264%) hue-rotate(155deg) brightness(96%) contrast(87%);
        transition: all 0.3s ease;
    }

        .logo img:hover {
            transform: scale(1.02);
        }

.welcome-text {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: -0.5px;
}

.subtitle {
    color: #7f8c8d;
    font-size: 15px;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        color: #333;
        font-weight: 500;
        font-size: 14px;
    }

.input-container {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 16px 50px 16px 20px;
    border: 2px solid #e0e4e8;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #2c3e50;
}

    .form-input:focus {
        outline: none;
        border-color: #3498db;
        background: white;
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    }

.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
    font-size: 16px;
}

.password-toggle {
    cursor: pointer;
    transition: color 0.3s ease;
}

    .password-toggle:hover {
        color: #3498db;
    }

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #e0e4e8;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .custom-checkbox.checked {
        background: #3498db;
        border-color: #3498db;
    }

        .custom-checkbox.checked::after {
            content: '\f00c';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            color: white;
            font-size: 12px;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

.checkbox-label {
    color: #666;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.auth-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

    .auth-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s;
    }

    .auth-btn:hover::before {
        left: 100%;
    }

    .auth-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
    }

    .auth-btn:active {
        transform: translateY(0);
    }

    .auth-btn:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none;
    }

.links-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-link {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .auth-link:hover {
        background: rgba(52, 152, 219, 0.08);
        transform: translateY(-1px);
        text-decoration: none;
        color: #2980b9;
    }

.text-danger {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
}

.validation-summary-errors {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
}

    .validation-summary-errors ul {
        margin: 0;
        padding-left: 20px;
    }

    .validation-summary-errors li {
        color: #dc3545;
        font-size: 14px;
    }

@media (max-width: 480px) {
    .auth-container {
        margin: 20px;
        padding: 40px 30px;
    }

    .welcome-text {
        font-size: 20px;
    }
}

/* Loading animation */
.loading {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Hidden original checkbox */
input[type="checkbox"] {
    display: none;
}

/* Snowflake animation */
.snowflake {
    position: absolute;
    top: -10px;
    color: white;
    font-size: 1em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    animation: snowfall linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes snowfall {
    0% {
        top: -10px;
        opacity: 0.8;
    }

    100% {
        top: 100vh;
        opacity: 0.5;
    }
}

@keyframes sway {
    0%, 100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(30px);
    }
}
