/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px;
    min-height: 100xvh;
    background: linear-gradient(120deg, #f5f7fa 0%, #e4edf5 100%);
    padding: 1px;
}

.container {
    display: flex;
    max-width: 1000px;
    width: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(8, 72, 146, 0.12);
    overflow: hidden;
}

.left-panel {
    flex: 1;
    background: linear-gradient(160deg, #4a90e2 0%, #2b5cb6 100%);
    color: white;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}



.left-panel h2 {
    font-size: 30px;
    margin: 15px 0;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.left-panel p {
    font-size: 16.5px;
    line-height: 1.7;
    margin-top: 15px;
    font-weight: 300;
    max-width: 320px;
}

.right-panel {
    flex: 1;
    padding: 50px 40px;
    background: white;
}

.login-form {
    max-width: 400px;
    margin: 0 auto;
}

.login-form h2 {
    color: #2b5cb6;
    font-size: 30px;
    margin-bottom: 35px;
    text-align: center;
    font-weight: 600;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #3a3f5c;
    font-size: 15px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #5f7bcf;
    font-size: 18px;
}

.input-with-icon input, 
.input-with-icon select {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid #e1e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
    color: #3a3f5c;
    background: #f9fbfd;
    appearance: none;
}

.input-with-icon input:focus, 
.input-with-icon select:focus {
    border-color: #5f7bcf;
    outline: none;
    box-shadow: 0 5px 15px rgba(95, 123, 207, 0.15);
    background: white;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.remember {
    display: flex;
    align-items: center;
}

.remember input {
    margin-right: 10px;
    accent-color: #4a90e2;
}

.remember label {
    color: #5a6578;
    font-size: 14.5px;
}

.forgot-password {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 500;
    font-size: 14.5px;
    transition: all 0.2s;
}

.forgot-password:hover {
    color: #2b5cb6;
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(160deg, #4a90e2 0%, #2b5cb6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(43, 92, 182, 0.25);
    letter-spacing: 0.5px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(43, 92, 182, 0.35);
}

.divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.divider:before {
    content: '';
    display: block;
    height: 1px;
    background: #e1e8f0;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
}

.divider span {
    background: white;
    position: relative;
    padding: 0 20px;
    color: #7b8798;
    font-size: 14px;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 30px;
}

.social-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.google {
    background: linear-gradient(160deg, #FF9F80 0%, #FF7C5F 100%);
}

.microsoft {
    background: linear-gradient(160deg, #7BB3F3 0%, #4A90E2 100%);
}

.github {
    background: linear-gradient(160deg, #6E7A8A 0%, #4C5866 100%);
}

.social-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.register-link {
    text-align: center;
    margin-top: 25px;
    color: #5a6578;
    font-size: 15px;
}

.register-link a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.register-link a:hover {
    color: #2b5cb6;
    text-decoration: underline;
}

.message {
    position: relative;
    margin-bottom: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

.message.error {
    background: linear-gradient(160deg, #FF9F80 0%, #FF5252 100%);
}

.message.success {
    background: linear-gradient(160deg, #6DCE91 0%, #42B883 100%);
}

.message.info {
    background: linear-gradient(160deg, #7BB3F3 0%, #4A90E2 100%);
}

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

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

@media (max-width: 900px) {
    .container {
        flex-direction: column;
        max-width: 500px;
    }
    
    .left-panel {
        padding: 40px 30px;
    }
    
    .right-panel {
        padding: 40px 30px;
    }
    
    .hackathon-image {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .left-panel, .right-panel {
        padding: 30px 25px;
    }
    
    .remember-forgot {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .forgot-password {
        margin-left: 34px;
    }
}
.logo-container {
    text-align: center;
    margin-bottom: 15px;
}

.logo-container img.logo {
    width: 200px;   /* set custom width */
    height: 200px;  /* set custom height */
    object-fit: contain; /* keeps aspect ratio inside box */
    border-radius: 50%;  /* circular logo */
}
.hackathon-image {
    background: #fff;       /* white container */
    padding: 15px;          /* space around the image */
    border-radius: 50px;     /* smooth corners */
    text-align: center;     /* center align the image */
    margin-top: 30px;
}

.hackathon-image img.hackathon-logo {
    width: 400px;   /* set fixed width */
    height: 80px;       /* set fixed height */
    object-fit: contain; /* keeps aspect ratio inside box */
}
