@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: linear-gradient(145deg, #1a4e8a 0%, #0a3357 100%);
    color: #1a2b3c;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

.login-wrapper {
    width: 100%;
    max-width: 480px;
    position: relative;
}

/* Decorative background elements */
.bg-accent {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.bg-accent-2 {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.login-container {
    background: white;
    border-radius: 32px;
    padding: 40px 32px;
    box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.img-logo {
    width: 64px;
    height: auto;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.img-logo:hover {
    transform: scale(1.05);
}

.welcome-text {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #0a3357;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 0.95rem;
    color: #5e6f7e;
    font-weight: 400;
}

.form-container {
    margin-bottom: 24px;
}

.login-form {
    margin-bottom: 24px;
}

.form-input {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.mail-title-light {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0a3357;
    margin-bottom: 6px;
    letter-spacing: -0.2px;
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #8a9aa8;
    transition: color 0.3s ease;
}

.input-border-color:focus + .input-icon {
    color: #0a3357;
}

.input-border-color {
    background-color: #f8fafc;
    padding: 14px 16px 14px 48px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    color: #1a2b3c;
    width: 100%;
    outline: none;
}

.input-border-color:focus {
    border-color: #0a3357;
    background-color: white;
    box-shadow: 0 4px 12px rgba(10, 51, 87, 0.08);
}

.input-border-color::placeholder {
    color: #9aa9b5;
    font-weight: 400;
}

.password-container {
    width: 100%;
    position: relative;
}

.password-icon {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #8a9aa8;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.password-icon:hover {
    color: #0a3357;
}

.hide {
    display: none;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 0 24px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #4a5c6b;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 20px;
    width: 20px;
    background-color: white;
    border: 2px solid #cbd5e0;
    border-radius: 6px;
    margin-right: 10px;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-container:hover .checkmark {
    border-color: #0a3357;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #0a3357;
    border-color: #0a3357;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.remember-text {
    color: #4a5c6b;
    font-weight: 500;
}

.forgot-password {
    color: #0a3357;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: #0e4b7a;
    gap: 10px;
}

.forgot-password ion-icon {
    font-size: 0.9rem;
}

.submit-form {
    padding: 16px 24px;
    background: linear-gradient(135deg, #0a3357 0%, #0e4b7a 100%);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    letter-spacing: -0.2px;
    box-shadow: 0 8px 16px rgba(10, 51, 87, 0.15);
}

.submit-form:hover {
    background: linear-gradient(135deg, #0e4b7a 0%, #0a3357 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(10, 51, 87, 0.2);
    gap: 16px;
}

.submit-form ion-icon {
    font-size: 1.2rem;
}

.signup-section {
    text-align: center;
}

.divider {
    position: relative;
    margin: 24px 0 16px;
}

.divider span {
    background: white;
    padding: 0 16px;
    color: #6b7c8a;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.signup-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #0a3357;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 24px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    transition: all 0.3s ease;
    width: 100%;
}

.signup-button:hover {
    border-color: #0a3357;
    background-color: #f8fafc;
    gap: 14px;
}

.signup-button ion-icon {
    font-size: 1.2rem;
}

.login-footer {
    margin-top: 32px;
    border-top: 2px solid #f1f5f9;
    padding-top: 24px;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: #94a3b8;
}

.footer-links a {
    color: #5e6f7e;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #0a3357;
}

.separator {
    color: #cbd5e0;
    font-size: 0.85rem;
}

.language-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #5e6f7e;
}

.language-selector ion-icon {
    font-size: 1.1rem;
}

.language-selector select {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    color: #1a2b3c;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.language-selector select:hover {
    border-color: #0a3357;
    background: white;
}

/* Desktop View */
@media screen and (min-width: 900px) {
    .login-container {
        padding: 48px 40px;
    }
}

/* Mobile View */
@media screen and (max-width: 600px) {
    .login-container {
        padding: 32px 24px;
        border-radius: 24px;
    }
    
    .welcome-text {
        font-size: 1.5rem;
    }
    
    .form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .forgot-password {
        align-self: flex-start;
    }
    
    .input-border-color {
        padding: 12px 16px 12px 48px;
        font-size: 0.9rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
    
    .separator {
        display: none;
    }
    
    .footer-links a {
        padding: 4px 0;
    }
}

/* Tablet View */
@media screen and (min-width: 601px) and (max-width: 899px) {
    .login-container {
        padding: 40px 32px;
    }
}