/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Teal-blue gradient background matching eOffice */
    background: linear-gradient(135deg, #2d7d8a 0%, #3a9aa8 20%, #5bb8b4 40%, #8ed4c8 60%, #b5ddd4 80%, #3a8a90 100%);
    background-size: cover;
    position: relative;
    overflow: hidden;
}

/* Subtle geometric overlay to match the angular pattern in the screenshot */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.05) 25%, transparent 25%),
        linear-gradient(225deg, rgba(255,255,255,0.05) 25%, transparent 25%),
        linear-gradient(315deg, rgba(255,255,255,0.08) 25%, transparent 25%),
        linear-gradient(45deg, rgba(255,255,255,0.03) 25%, transparent 25%);
    background-size: 400px 400px;
    pointer-events: none;
}

/* ===== Date Display ===== */
.date-display {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* ===== Login Container ===== */
.login-container {
    background: linear-gradient(160deg, rgba(255,255,255,0.85) 0%, rgba(200,230,225,0.7) 50%, rgba(150,210,200,0.6) 100%);
    backdrop-filter: blur(10px);
    border-radius: 4px;
    padding: 30px 40px 35px;
    width: 420px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

/* ===== Login Header (DoTE Logo + Org Name) ===== */
.login-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.dote-logo img {
    height: 40px;
    width: auto;
}

.org-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    letter-spacing: 0.5px;
}

.header-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, #1a5276, #2e86c1, transparent);
    margin-bottom: 20px;
}

/* ===== eOffice Logo ===== */
.eoffice-logo {
    text-align: center;
    margin-bottom: 25px;
}

.eoffice-logo img {
    height: 55px;
    width: auto;
}

.eoffice-logo-fallback {
    text-align: center;
}

.eoffice-text {
    font-size: 36px;
    font-weight: 700;
    color: #2c6e7a;
    letter-spacing: 2px;
}

.eoffice-text .orange {
    color: #e67e22;
}

.eoffice-tagline {
    font-size: 10px;
    font-weight: 500;
    color: #fff;
    background: #2c3e50;
    display: inline-block;
    padding: 2px 12px;
    letter-spacing: 2px;
    margin-top: 2px;
}

/* ===== Form Styles ===== */
.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

/* Input Groups */
.input-group {
    display: flex;
    align-items: center;
    width: 280px;
}

.input-icon {
    width: 40px;
    height: 42px;
    background: #d5dfe4;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #bcc7cc;
    border-right: none;
    border-radius: 2px 0 0 2px;
    color: #5a7080;
    font-size: 16px;
}

.input-group input[type="text"],
.input-group input[type="password"] {
    flex: 1;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #bcc7cc;
    border-radius: 0 2px 2px 0;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    color: #333;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.input-group input:focus {
    border-color: #2980b9;
}

.input-group input::placeholder {
    color: #999;
}

.password-icons {
    position: absolute;
    right: 8px;
    display: flex;
    gap: 6px;
    color: #888;
}

/* Make password group relative for icon positioning */
.input-group:nth-child(2) {
    position: relative;
}

.password-icons {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 5px;
    color: #777;
    font-size: 12px;
}

/* ===== Captcha Section ===== */
.captcha-group {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 280px;
}

.captcha-display {
    background: #1a2a3a;
    color: #a8c8d8;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 2px;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
    user-select: none;
    min-width: 80px;
    text-align: center;
}

.captcha-btn {
    width: 36px;
    height: 36px;
    background: #4a5568;
    color: #fff;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.2s;
}

.captcha-btn:hover {
    background: #2d3748;
}

.captcha-input {
    flex: 1;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #bcc7cc;
    border-radius: 2px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    outline: none;
    background: #fff;
}

.captcha-input:focus {
    border-color: #2980b9;
}

.captcha-input::placeholder {
    color: #999;
}

/* ===== Login Button ===== */
.login-btn {
    width: 140px;
    height: 40px;
    background: linear-gradient(180deg, #3a8a90 0%, #2d7070 100%);
    color: #fff;
    border: 1px solid #256868;
    border-radius: 3px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background 0.2s;
    margin-top: 4px;
}

.login-btn:hover {
    background: linear-gradient(180deg, #2d7070 0%, #245858 100%);
}

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

/* ===== Footer ===== */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
    z-index: 1;
}

.footer-left img,
.footer-right img {
    height: 35px;
    width: auto;
}

.footer-left,
.footer-right {
    flex-shrink: 0;
}

.footer-center {
    text-align: center;
    flex: 1;
}

.footer-center p {
    font-size: 11px;
    color: #e0e0e0;
    line-height: 1.5;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
    .login-container {
        width: 90%;
        padding: 25px 20px;
    }

    .input-group,
    .captcha-group {
        width: 100%;
    }
}
