
body {
    margin: 0;
    padding: 0;
    background: #f0f2f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== HOME PAGE STYLES ==================== */
.center-bg {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #a8e6cf 0%, #7dd3c0 100%);
    padding: 20px;
}

.login-wrapper {
    background: #f5f5f5;
    border-radius: 50px;
    padding: 60px 80px;
    max-width: 1000px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.brand {
    text-align: center;
    margin-bottom: 50px;
}

.lock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #5b4cdb;
    border-radius: 50%;
    margin-bottom: 15px;
}

.lock i {
    color: white;
    font-size: 28px;
}

.brand h2 {
    color: #5b4cdb;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.brand p {
    color: #666;
    font-size: 16px;
    font-weight: 400;
}

.card-container {
    display: flex;
    gap: 50px;
    justify-content: center;
    align-items: stretch;
}

.login-card {
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 55%, #5b4cdb 55%, #5b4cdb 100%);
    border-radius: 30px;
    padding: 0;
    flex: 1;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 8px 25px rgba(91, 76, 219, 0.15);
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: auto;
    padding: 40px 30px 30px 30px;
    object-fit: contain;
    max-height: 280px;
}

.btn {
    background: white;
    color: #5b4cdb;
    text-decoration: none;
    padding: 14px 45px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    margin: 30px 0 40px 0;
    display: inline-block;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(0);
}

/* ==================== LOGIN PAGE STYLES ==================== */
.auth-layout {
    background: white;
    border: 3px solid #4a9ff5;
    border-radius: 0px 100px 0px 100px;
    max-width: 1100px;
    width: 95%;
    margin: 20px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    box-shadow: 7px 7px 25px black;
}

/* Brand Header at Top */
.auth-layout::before {
    content: '🔒';
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateY(-100%);
    width: 45px;
    height: 45px;
    background: #5b4cdb;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 45px;
    text-align: center;
}

.auth-layout::after {
    content: 'PayFlow\AHR Payroll System';
    white-space: pre;
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #5b4cdb;
    line-height: 1.3;
    padding-left: 55px;
    z-index: 11;
}

.auth-box {
    padding: 10px 40px 20px 30px;
    margin-top: 20px;
    border-radius: 0px 50px 0px 50px;
    box-shadow: 2px 2px 10px black;
    /* border: 2px solid red; */
}

.auth-box h2 {
    font-size: 26px;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-weight: 600;
}

.auth-box p {
    color: #888;
    font-size: 14px;
    margin-bottom: 35px;
}

.auth-box form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-box input[type="text"],
.auth-box input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.auth-box input[type="text"]:focus,
.auth-box input[type="password"]:focus {
    outline: none;
    border-color: #5b4cdb;
    background: white;
    box-shadow: 0 0 0 3px rgba(91, 76, 219, 0.1);
}

.auth-box input::placeholder {
    color: #aaa;
}

.auth-box button[type="submit"] {
    width: 100%;
    padding: 14px;
    background: #5b4cdb;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.auth-box button[type="submit"]:hover {
    background: #4a3cb8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(91, 76, 219, 0.3);
}

.auth-box button[type="submit"]:active {
    transform: translateY(0);
}

.auth-box .back {
    display: inline-block;
    margin-top: 20px;
    color: #5b4cdb;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.auth-box .back:hover {
    color: #4a3cb8;
    text-decoration: underline;
}

.auth-box .error {
    background: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 20px;
    border-left: 4px solid #c33;
}

.auth-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-image img {
    width: 100%;
    max-width: 450px;
    height: auto;
    object-fit: contain;
}

/* ==================== RESPONSIVE - HOME PAGE ==================== */
@media (max-width: 968px) {
    .login-wrapper {
        padding: 50px 60px;
    }
    
    .card-container {
        gap: 35px;
    }
}

@media (max-width: 768px) {
    .login-wrapper {
        padding: 40px 30px;
        border-radius: 35px;
    }
    
    .brand h2 {
        font-size: 32px;
    }
    
    .brand p {
        font-size: 14px;
    }
    
    .lock {
        width: 55px;
        height: 55px;
    }
    
    .lock i {
        font-size: 24px;
    }
    
    .card-container {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    
    .login-card {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .center-bg {
        padding: 15px;
    }
    
    .login-wrapper {
        padding: 30px 20px;
        border-radius: 25px;
    }
    
    .brand {
        margin-bottom: 35px;
    }
    
    .brand h2 {
        font-size: 28px;
    }
    
    .lock {
        width: 50px;
        height: 50px;
    }
    
    .lock i {
        font-size: 22px;
    }
    
    .card-img {
        padding: 30px 20px 20px 20px;
        max-height: 240px;
    }
    
    .btn {
        padding: 12px 35px;
        font-size: 14px;
        margin: 25px 0 35px 0;
    }
}

@media (max-width: 360px) {
    .login-wrapper {
        padding: 25px 15px;
    }
    
    .brand h2 {
        font-size: 24px;
    }
    
    .btn {
        padding: 10px 30px;
        font-size: 13px;
    }
}

/* ==================== RESPONSIVE - LOGIN PAGE ==================== */
@media (max-width: 968px) {
    .auth-layout {
        gap: 40px;
        padding: 35px;
    }
    
    .auth-layout::after {
        font-size: 24px;
        padding-left: 50px;
    }
    
    .auth-box {
        padding: 70px 20px 20px 20px;
    }
}

@media (max-width: 768px) {
    .auth-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 25px;
    }
    
    .auth-layout::before {
        width: 40px;
        height: 40px;
        top: 25px;
        font-size: 20px;
        line-height: 40px;
    }
    
    .auth-layout::after {
        font-size: 22px;
        top: 20px;
        padding-left: 48px;
    }
    
    .auth-box {
        padding: 60px 10px 20px 10px;
    }
    
    .auth-box h2 {
        font-size: 24px;
    }
    
    .auth-image {
        order: -1;
        padding: 10px;
    }
    
    .auth-image img {
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .auth-layout {
        padding: 25px 20px;
        margin: 15px;
    }
    
    .auth-layout::before {
        width: 35px;
        height: 35px;
        top: 20px;
        font-size: 18px;
        line-height: 35px;
    }
    
    .auth-layout::after {
        font-size: 18px;
        top: 16px;
        padding-left: 42px;
    }
    
    .auth-box {
        padding: 50px 5px 15px 5px;
    }
    
    .auth-box h2 {
        font-size: 22px;
    }
    
    .auth-box p {
        font-size: 13px;
        margin-bottom: 25px;
    }
    
    .auth-box input[type="text"],
    .auth-box input[type="password"] {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .auth-box button[type="submit"] {
        padding: 12px;
        font-size: 15px;
    }
    
    .auth-image img {
        max-width: 280px;
    }
}

@media (max-width: 360px) {
    .auth-layout::after {
        font-size: 16px;
        padding-left: 38px;
    }
    
    .auth-box h2 {
        font-size: 20px;
    }
}