/* Login Page Styles - COMSATS Event Management System */

body, html {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-wrapper {
    width: 100%;
    max-width: 1000px;
    padding: 20px;
}

.login-container {
    display: flex;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    overflow: hidden;
    min-height: 550px;
}

/* Left Graphic Side Styling */
.login-graphic-side {
    flex: 1;
    padding: 50px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #2296ce 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

/* Animated Background Circles */
.login-graphic-side::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.login-graphic-side::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite reverse;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.branding {
    position: relative;
    z-index: 1;
}

.branding .logo {
    font-size: 52px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 2px;
}

.branding h1 {
    font-size: 26px;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 600;
}

.branding p {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
}

/* Event Icons Animation */
.illustration-placeholder {
    height: 280px;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.event-icons-container {
    position: relative;
    width: 250px;
    height: 250px;
}

.event-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: float 3s ease-in-out infinite;
}

.event-icon:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
    color: #e74c3c;
}

.event-icon:nth-child(2) {
    top: 25%;
    right: 0;
    animation-delay: 0.5s;
    color: #f39c12;
}

.event-icon:nth-child(3) {
    bottom: 25%;
    right: 0;
    animation-delay: 1s;
    color: #27ae60;
}

.event-icon:nth-child(4) {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 1.5s;
    color: #3498db;
}

.event-icon:nth-child(5) {
    bottom: 25%;
    left: 0;
    animation-delay: 2s;
    color: #9b59b6;
}

.event-icon:nth-child(6) {
    top: 25%;
    left: 0;
    animation-delay: 2.5s;
    color: #1abc9c;
}

.center-logo {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 90px;
height: 90px;
background: #fff;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 8px 20px rgba(0,0,0,0.15);
z-index: 5;
}


.center-logo img {
max-width: 65%;
height: auto;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

@keyframes glow {
    from { box-shadow: 0 15px 40px rgba(0,0,0,0.3), 0 0 20px rgba(255,255,255,0.3); }
    to { box-shadow: 0 15px 40px rgba(0,0,0,0.3), 0 0 40px rgba(255,255,255,0.6); }
}

/* Right Form Side Styling */
.login-form-side {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* Back to Home Button */
.back-to-home {
    position: absolute;
    top: 25px;
    left: 25px;
    color: #2a5298;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 8px;
}

.back-to-home:hover {
    color: #1e3c72;
    background: rgba(42, 82, 152, 0.1);
}

.back-to-home i {
    font-size: 12px;
}

.form-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #1e3c72;
    font-weight: 700;
}

.form-header p {
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 4px solid;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-color: #28a745;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-color: #dc3545;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

.alert li {
    margin-bottom: 5px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.input-with-icon {
    position: relative;
}

.input-with-icon input {
    width: 100%;
    padding: 15px 45px 15px 50px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    box-sizing: border-box;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.input-with-icon input:focus {
    outline: none;
    border-color: #2a5298;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(42, 82, 152, 0.1);
}

.input-with-icon i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
    transition: color 0.3s ease;
}

.input-with-icon input:focus + i,
.input-with-icon input:focus ~ i:first-of-type {
    color: #2a5298;
}

.input-with-icon .toggle-password {
    left: auto;
    right: 18px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.input-with-icon .toggle-password:hover {
    color: #2a5298;
}

/* Options Row */
.options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 25px;
}

.options-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    cursor: pointer;
    margin: 0;
    font-weight: 400;
}

.options-row input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #2a5298;
}

.options-row a {
    color: #2a5298;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.options-row a:hover {
    color: #1e3c72;
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #2296ce 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(42, 82, 152, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(42, 82, 152, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    body, html {
        background: #fff;
    }

    .login-wrapper {
        padding: 0;
        max-width: 100%;
    }

    .login-container {
        flex-direction: column;
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
    }

    .login-graphic-side {
        padding: 30px;
        min-height: 300px;
    }

    .branding .logo {
        font-size: 36px;
    }

    .branding h1 {
        font-size: 20px;
    }

    .form-header h2 {
        font-size: 26px;
    }

    .illustration-placeholder {
        height: 200px;
    }

    .event-icons-container {
        width: 200px;
        height: 200px;
    }

    .event-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .center-logo {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .login-form-side {
        padding: 30px;
    }

    .back-to-home {
        position: static;
        margin-bottom: 20px;
        display: inline-flex;
    }

    .form-header {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .login-graphic-side {
        padding: 25px;
        min-height: 250px;
    }

    .branding .logo {
        font-size: 28px;
    }

    .branding h1 {
        font-size: 18px;
    }

    .form-header h2 {
        font-size: 22px;
    }

    .illustration-placeholder {
        height: 150px;
    }

    .event-icons-container {
        width: 160px;
        height: 160px;
    }

    .event-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
        border-radius: 10px;
    }

    .center-logo {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .login-form-side {
        padding: 20px;
    }

    .options-row {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .input-with-icon input {
        padding: 12px 40px 12px 45px;
    }
}
