:root {
    --dole-blue: #1e3a8a;
    --dole-blue-dark: #1e40af;
    --dole-light: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.9);
}

.bg-gradient {
    min-height: 100vh;
    /* Updated to a more modern mesh-style gradient */
    background: radial-gradient(at 0% 0%, rgba(30, 58, 138, 0.05) 0px, transparent 50%),
                radial-gradient(at 100% 100%, rgba(30, 58, 138, 0.05) 0px, transparent 50%),
                #f1f5f9;
    display: flex; 
    align-items: center; 
    justify-content: center;
    padding: 24px; 
    font-family: 'Inter', sans-serif;
}

.container { 
    width: 100%; 
    max-width: 440px; 
}

.login-card {
    background: var(--glass-bg);
    /* Glassmorphism effect */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 48px 40px; 
    border-radius: 28px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08); 
    border: 1px solid rgba(255, 255, 255, 0.7);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-header { 
    text-align: center; 
    margin-bottom: 35px; 
}

.dole-logo { 
    display: inline-block;
    padding: 6px 16px;
    background: #eff6ff;
    border-radius: 50px;
    font-weight: 900; 
    font-size: 14px; 
    color: var(--dole-blue); 
    letter-spacing: 1px; 
    margin-bottom: 15px;
}

.login-header h3 { 
    margin: 0; 
    color: var(--text-main); 
    font-weight: 800; 
    font-size: 24px;
    letter-spacing: -0.5px;
}

.login-header p { 
    font-size: 14px; 
    color: var(--text-muted); 
    margin-top: 8px;
}

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

.form-group label {
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-size: 12px;
    font-weight: 700; 
    color: var(--text-main); 
    margin-bottom: 10px;
    opacity: 0.8;
}

.form-group input {
    width: 100%; 
    padding: 14px 18px; 
    border: 2px solid #e2e8f0;
    background: #fff;
    border-radius: 14px; 
    font-size: 16px; 
    color: var(--text-main);
    transition: all 0.3s ease;
}

.form-group input:focus { 
    border-color: var(--dole-blue); 
    outline: none; 
    background: #fff; 
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
}

/* Custom styling for the ID number input */
#js_id {
    letter-spacing: 2px;
    font-size: 20px;
}

.btn-login {
    width: 100%; 
    padding: 16px; 
    background: var(--dole-blue);
    color: white; 
    border: none; 
    border-radius: 14px; 
    font-weight: 700;
    font-size: 15px;
    cursor: pointer; 
    transition: all 0.3s ease; 
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-login:hover { 
    transform: translateY(-2px); 
    background: var(--dole-blue-dark); 
    box-shadow: 0 12px 20px -5px rgba(30, 58, 138, 0.25); 
}

.btn-login:active {
    transform: translateY(0);
}

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

.divider::before { 
    content: ""; 
    position: absolute; 
    top: 50%; 
    left: 0; 
    right: 0; 
    height: 1px; 
    background: #e2e8f0; 
}

.divider span { 
    position: relative; 
    background: white; 
    padding: 0 16px; 
    font-size: 11px; 
    font-weight: 800; 
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-js-portal {
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px;
    width: 100%; 
    padding: 14px; 
    border: 2px solid #e2e8f0;
    border-radius: 14px; 
    color: var(--text-muted); 
    text-decoration: none;
    font-weight: 700; 
    font-size: 14px; 
    transition: all 0.3s ease;
}

.btn-js-portal:hover { 
    background: #f8fafc; 
    color: var(--dole-blue); 
    border-color: var(--dole-blue); 
}

.login-footer { 
    margin-top: 32px; 
    padding-top: 24px; 
    border-top: 1px solid #f1f5f9; 
    text-align: center;
}

/* Custom Register Link Styling */
.register-link {
    color: var(--dole-blue);
    text-decoration: none;
    font-weight: 800;
    transition: opacity 0.2s;
}

.register-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}
/* Styling for the ID input to make it prominent */
.id-input-style {
    text-align: center;
    font-size: 22px !important;
    font-weight: 800;
    color: var(--dole-blue);
    letter-spacing: 3px;
}

/* Styling for the Name input */
.name-input-style {
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Ensure the link looks integrated */
.register-link {
    color: var(--dole-blue);
    text-decoration: none;
    font-weight: 800;
    transition: color 0.2s;
}

.register-link:hover {
    color: var(--dole-blue-dark);
    text-decoration: underline;
}
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
}

.auth-logo {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.brand-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(30, 58, 138, 0.08); /* Subtle blue tint */
    color: var(--dole-blue);
    border-radius: 50px;
    font-size: 10px; /* Slightly smaller for the longer text */
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    max-width: 90%; /* Prevents touching edges on small screens */
    line-height: 1.2;
}

.login-header h3 {
    font-weight: 800;
    color: #1e293b;
    margin-top: 15px;
}

.login-header p {
    font-size: 14px;
    color: #64748b;
}
.login-footer {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #f1f5f9; /* Subtle separator */
    text-align: center;
}

.footer-text {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.register-link {
    display: inline-flex;
    align-items: center;
    color: var(--dole-blue);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    margin-left: 5px;
    transition: all 0.2s ease;
}

.register-link ion-icon {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.register-link:hover {
    color: #1e40af; /* Slightly darker blue */
    text-decoration: none;
}

/* Small animation for the arrow on hover */
.register-link:hover ion-icon {
    transform: translateX(3px);
}