*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:"Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body{
    background: linear-gradient(135deg, #001f3f 0%, #003d7a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 31, 63, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 61, 122, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.container{
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    width:100%;
    max-width:450px;
    padding:2.5rem 2rem;
    margin:0 auto;
    border-radius:20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container{
    text-align:center;
    margin-bottom:1.5rem;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.login-logo{
    max-width:180px;
    height:auto;
    display:inline-block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.login-logo:hover {
    transform: scale(1.05);
}

form{
    margin:0;
}

.form-title{
    font-size:1.75rem;
    font-weight:700;
    text-align:center;
    padding:0;
    margin-bottom:1.5rem;
    background: linear-gradient(135deg, #001f3f 0%, #003d7a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

select, input{
    flex:10;
    color:#333;
    width:100%;
    background-color:transparent;
    border:none;
    font-size:15px;
    padding:0 0.5em;
    font-weight: 400;
}

select:focus, input:focus{
    outline:none;
}

.input-group{
    position:relative;
    background-color:#f8f9fa;
    margin:1.25em auto;
    border-radius:12px;
    display:flex;
    padding:0.85em 0.5em;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.input-group:hover {
    background-color:#f0f2f5;
    border-color: rgba(0, 31, 63, 0.3);
}

.input-group:focus-within{
    background-color:#fff;
    border-color: #001f3f;
    box-shadow: 0 4px 12px rgba(0, 31, 63, 0.2);
    transform: translateY(-2px);
}

.error{
    position:absolute;
    left:3em;
    bottom:-1.5em;
    z-index: 10;
}

.error p{
    color:#e74c3c;
    font-weight:500;
    text-align:left;
    font-size:13px;
    background: rgba(255, 255, 255, 0.95);
    padding: 2px 6px;
    border-radius: 4px;
}

.input-group i{
    flex:1;
    color:#6c757d;
    display:flex;
    justify-content:center;
    align-items:center;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.input-group:focus-within i{
    color:#001f3f;
}

.input-group.password i:first-child{
    flex:1.1;
}

.input-group.password #eye {
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
}

.input-group.password #eye:hover {
    color: #001f3f;
}

select:focus, input:focus{
    outline:none;
}

select {
    cursor: pointer;
}

select option {
    padding: 10px;
}

.recover{
    text-align:right;
    font-size:0.9rem;
    margin-bottom:1.25rem;
    margin-top: 0.5rem;
}

.recover a{
    text-decoration:none;
    color:#001f3f;
    font-weight: 500;
    transition: all 0.3s ease;
}

.recover a:hover{
    color:#003d7a;
    text-decoration:underline;
}

.btn{
    font-size:1rem;
    padding:0.85em 0;
    border-radius:12px;
    outline:none;
    border:none;
    width:100%;
    background: linear-gradient(135deg, #001f3f 0%, #003d7a 100%);
    color:white;
    cursor:pointer;
    transition: all 0.3s ease;
    margin-top:0.5em;
    font-weight:600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 31, 63, 0.4);
    position: relative;
    overflow: hidden;
}

.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;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover{
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 31, 63, 0.5);
}

.btn:active{
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 31, 63, 0.3);
}

.links{
    display:flex;
    justify-content:space-around;
    padding:0 4rem;
    margin-top:0.9rem;
    font-weight:bold;
}

button{
    color:#001f3f;
    border:none;
    background-color:transparent;
    font-size:1rem;
    font-weight:bold;
    transition: all 0.3s ease;
}

button:hover{
    text-decoration:underline;
    color:#003d7a;
}

.error-main{
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    padding:0.75em 1em;
    border-radius:12px;
    width:100%;
    margin:0 auto 1.5rem;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.error-main p{
    color:white;
    text-align:center;
    font-weight: 500;
}

.user-details{
    margin-top:5em;
    font-size:1.5em;
    font-weight:400;
}

.user-details p{
    margin-bottom:0.5em;
    text-align:center;
}

.user-details p:first-child{
    text-decoration:underline;
    margin-bottom:2em;
    font-weight:600;
}

.user-details a{
    display: block; 
    text-align: center; 
    text-decoration-color:#001f3f;
    color:#001f3f;
    transition:all 0.3s ease;
}

.user-details a:hover{
    color:#003d7a;
    text-decoration-color:#003d7a;
}

@media screen and (max-width: 767px) {
    body{
        padding: 15px;
        align-items: flex-start;
        padding-top: 40px;
    }
    
    .container{
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    .logo-container{
        margin-bottom: 1.25rem;
    }
    
    .login-logo{
        max-width: 140px;
    }
    
    form {
        margin: 0;
    }
    
    .form-title {
        font-size: 1.5rem;
        padding: 0;
        margin-bottom: 1.25rem;
    }
    
    .input-group {
        margin: 1em auto;
        padding: 0.75em 0.5em;
    }
    
    .btn {
        min-height: 50px;
        font-size: 1rem;
        padding: 0.9em 0;
    }
}

@media screen and (max-width: 480px) {
    body{
        padding: 10px;
        padding-top: 30px;
    }
    
    .container {
        padding: 1.75rem 1.25rem;
        border-radius: 12px;
    }
    
    .logo-container{
        margin-bottom: 1rem;
    }
    
    .login-logo{
        max-width: 120px;
    }
    
    .form-title {
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }
    
    .input-group {
        padding: 0.7em 0.4em;
        margin: 0.9em auto;
    }
    
    .recover {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .btn {
        padding: 0.85em 0;
        font-size: 0.95rem;
    }
    
    .links {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 0 1rem;
    }
}
