/* app-login.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Inter', sans-serif;
    background-color: #f5f5f5;
}

/* Hide default WP Admin bar if it appears to not break the mobile view */
#wpadminbar {
    display: none !important;
}

.app-login-body {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    width: 100%;
    max-width: 414px;
    height: 100vh;
    max-height: 896px;
    background-color: #fff;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.login-header {
    height: 35%;
    /* Image of medical care / elderly patient */
    background-image: url('https://images.unsplash.com/photo-1584515933487-779824d29309?q=80&w=1000&auto=format&fit=crop');
    background-size: cover;
    background-position: center 30%;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 16px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.login-bottom-sheet {
    height: 65%;
    background: white;
    margin-top: -5%; /* Overlap the image */
    border-radius: 25px 25px 0 0;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    z-index: 2;
    position: relative;
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 5px 0;
    color: #1a1a1a;
}

.login-subtitle {
    font-size: 14px;
    text-align: center;
    color: #888;
    margin: 0 0 25px 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    color: #333;
    outline: none;
    box-sizing: border-box;
}

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

.input-group input:focus {
    border-color: #2b9d4f; /* Màu xanh chủ đạo */
}

.password-group .toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #bbb;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.forgot-password {
    text-align: right;
    margin-top: -5px;
}

.forgot-password a {
    color: #2b9d4f;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}

.btn-primary-login {
    background-color: #ebebeb;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 5px;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #999;
    font-size: 13px;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eee;
}

.divider span {
    padding: 0 10px;
}

.btn-social-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    margin-bottom: 20px;
}

.terms-text {
    font-size: 12px;
    text-align: center;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.terms-text a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.register-text {
    margin-top: auto;
    font-size: 14px;
    text-align: center;
    color: #666;
    margin-bottom: 20px;
}

.register-text a {
    color: #2b9d4f;
    text-decoration: none;
    font-weight: 500;
}
