/* Updated styles for the layout with square box */
body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #87afd4, #096dd9);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    width: 100%;
    max-width: 900px;
    padding: 20px;
}

.login-box {
    display: flex;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.login-image {
    flex: 1;
    background: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}




/* Square box decoration on the left side */
.login-image::before {
    content: "";
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: hsl(96, 93%, 42%);
    z-index: 1;
    opacity: 0.5;
    border-radius: 5px;
}

.login-image::after {
    content: "";
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: #1890ff;
    z-index: 1;
    opacity: 0.5;
    border-radius: 5px;
}

.login-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    position: relative;
    z-index: 2;
}

.login-form {
    flex: 1;
    padding: 40px;
    position: relative;
}

/* Square decoration for the form side */
.login-form::before {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 50px;
    background: #1890ff;
    z-index: 1;
    opacity: 0.4;
    border-radius: 5px;
}

.login-form h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: bold;
}

.login-form input[type="text"],
#otp-section input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

.login-button {
    width: 100%;
    padding: 12px;
    background-color: #1890ff !important;
    color: white !important;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    margin-top: 10px;
    transition: background-color 0.3s;
    position: relative;
    z-index: 2;
}

.login-button:hover {
    background-color: #096dd9 !important;
}

.register-link {
    text-align: center;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.register-link a {
    color: #1890ff;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}

.footer {
    text-align: center;
    margin-top: 30px;
    font-size: 12px;
    color: #666;
    position: relative;
    z-index: 2;
}

#otp-section {
    display: none;
    margin-top: 20px;
}

#otp-section input {
    margin-bottom: 10px;
}

#error-message {
    display: none;
    color: red;
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
}

/* New styles for details-container */
#details-container {
    width: 100%;
    max-width: 900px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
}

.container-material {
    padding: 20px;
}

.card.horizontal {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    padding: 20px !important; /* Override inline padding if needed */
}

.card-stacked .card-content p {
    margin: 10px 0;
    color: #333;
}

.card-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-image img#profile_picture {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 20%;
    border: 2px solid #1890ff;
}

.card-image button {
    padding: 8px 15px !important; /* Override inline styles */
    background-color: #1890ff !important;
    color: white !important;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin: 5px;
    transition: background-color 0.3s;
}

.card-image button:hover {
    background-color: #096dd9 !important;
}

.card-image a button {
    background-color: #4CAF50 !important; /* Different color for ID Card button */
}

.card-image a button:hover {
    background-color: #45a049 !important;
}

.info-section {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-top: 20px;
}

.info-section h3 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 16px;
}

.info-row strong {
    flex: 0 0 40%;
    color: #555;
}

.info-row span {
    flex: 0 0 60%;
    color: #333;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.common-button {
    display: inline-block;
    padding: 12px 20px;
    background-color: #1890ff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s;
}

.common-button:hover {
    background-color: #096dd9;
}
#login-success-message {
    display: none; /* Initially hidden */
    color: #4CAF50; /* Green color */
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
    padding: 10px;
    background: rgba(76, 175, 80, 0.1); /* Light green background for emphasis */
    border-radius: 5px;
    width: 100%;
    max-width: 900px; /* Match login-container width */
    box-sizing: border-box;
    position: relative; /* Ensure it stays in the document flow */
    left: 50%;
    transform: translateX(-50%);
}

/* Responsive design */
@media (max-width: 768px) {
    .login-box {
        flex-direction: column;
    }
    
    .login-image {
        padding: 30px;
    }
    
    .login-form {
        padding: 30px;
    }
    
    .login-image::before,
    .login-image::after {
        display: none;
    }

    #details-container {
        padding: 10px;
    }

    .card.horizontal {
        flex-direction: column;
        padding: 15px !important;
    }

    .card-image {
        margin-top: 20px;
    }

    .info-row {
        flex-direction: column;
        gap: 5px;
    }

    .info-row strong,
    .info-row span {
        flex: 1;
    }

    .button-container {
        flex-direction: column;
        align-items: center;
    }

    .common-button {
        width: 100%;
        text-align: center;
    }
}