/* Shared CSS for login.php and 2fa.php */

/* Body & container */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #6B73FF 0%, #000DFF 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    background: #fff;
    padding: 40px 25px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    width: 95%;
    max-width: 500px;
    box-sizing: border-box;
    text-align: center;
}

/* Headings */
h2 {
    margin-bottom: 25px;
    color: #333;
    font-weight: 600;
}

/* Input fields */
input {
    width: 100%;
    padding: 16px; /* touch-friendly */
    margin: 10px 0;
    border-radius: 14px; /* rounded corners */
    border: 1px solid #ccc;
    font-size: 18px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

input:focus {
    border-color: #6B73FF;
    box-shadow: 0 0 8px rgba(107, 115, 255, 0.5);
    outline: none;
}

/* Buttons */
button {
    width: 100%;
    padding: 18px;
    margin-top: 10px;
    background: linear-gradient(90deg, #6B73FF 0%, #000DFF 100%);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* Message display */
#message {
    color: red;
    margin-top: 10px;
    font-size: 14px;
}

/* Testing code display */
.testing-code {
    color: #555;
    font-size: 14px;
    margin-bottom: 15px;
    word-wrap: break-word;
}

/* 2FA digit container */
.digit-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: nowrap;
    gap: 12px; /* spacing between digits */
}

/* 2FA digit inputs */
.digit-input {
    flex: 1; /* equal width */
    padding: 16px;
    font-size: 26px;
    text-align: center;
    border-radius: 14px;
    border: 1px solid #ccc;
    transition: all 0.2s ease;
}

.digit-input:focus {
    border-color: #6B73FF;
    box-shadow: 0 0 8px rgba(107, 115, 255, 0.5);
    outline: none;
}

/* Responsive adjustments */
@media (max-width: 420px) {
    input, .digit-input {
        font-size: 22px;
        padding: 14px;
    }
}

@media (max-width: 360px) {
    input, .digit-input {
        font-size: 20px;
        padding: 12px;
    }
}
