﻿/* Reset for login layout */
body {
    overflow: hidden;
    height: 100vh;
    margin: 0;
    padding: 0;
}

.sendcode-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 10px;
    box-sizing: border-box;
    background: #f5f7fa;
}

.sendcode-container {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

.sendcode-panel {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.panel-header {
    background: linear-gradient(135deg, #0C4930 0%, #072b1c 100%);
    color: white;
    padding: 18px 16px;
    text-align: center;
}

.auth-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

    .auth-icon i {
        font-size: 24px;
    }

.panel-header h2 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

.panel-header p {
    margin: 0;
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.3;
}

.panel-body {
    padding: 20px 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
    font-size: 12px;
}

.form-control {
    width: 100%;
    height: 40px;
    padding: 8px 12px;
    font-size: 13px;
    border: 1.5px solid #e0e0e0;
    border-radius: 5px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

    .form-control:focus {
        border-color: #0C4930;
        box-shadow: 0 0 0 2px rgba(12, 73, 48, 0.1);
        outline: none;
    }

.provider-display {
    background: #f8f9fa;
    border: 1.5px solid #e0e0e0;
    border-radius: 5px;
    padding: 10px 12px;
    font-weight: 500;
    color: #333;
    font-size: 12px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.current-mobile {
    background: #e8f5e9;
    border: 1.5px solid #c8e6c9;
    border-radius: 5px;
    padding: 12px;
    margin-bottom: 16px;
}

.mobile-label {
    font-size: 10px;
    color: #666;
    display: block;
    margin-bottom: 3px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.mobile-number {
    font-size: 14px;
    font-weight: 600;
    color: #0C4930;
    margin: 2px 0;
}

.mobile-info {
    display: flex;
    align-items: flex-start;
    margin-top: 5px;
    font-size: 11px;
    color: #666;
    line-height: 1.3;
}

    .mobile-info i {
        margin-right: 5px;
        color: #0C4930;
        font-size: 12px;
        flex-shrink: 0;
        margin-top: 1px;
    }

.send-button {
    width: 100%;
    height: 40px;
    background: linear-gradient(135deg, #0C4930 0%, #072b1c 100%);
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
}

    .send-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 3px 8px rgba(12, 73, 48, 0.25);
    }

    .send-button:active {
        transform: translateY(0);
    }

    .send-button i {
        margin-right: 6px;
        font-size: 13px;
    }

.back-link {
    text-align: center;
    margin-top: 16px;
}

    .back-link a {
        color: #0C4930;
        text-decoration: none;
        font-size: 12px;
        display: inline-flex;
        align-items: center;
        transition: color 0.2s ease;
    }

        .back-link a:hover {
            color: #072b1c;
            text-decoration: underline;
        }

        .back-link a i {
            margin-right: 4px;
            font-size: 11px;
        }

.validation-summary-errors {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 5px;
    padding: 8px 12px;
    margin-bottom: 14px;
    color: #c33;
    font-size: 12px;
    line-height: 1.3;
}

    .validation-summary-errors ul {
        margin: 0;
        padding-left: 16px;
    }

    .validation-summary-errors li {
        margin-bottom: 3px;
    }

        .validation-summary-errors li:last-child {
            margin-bottom: 0;
        }

.validation-summary-valid {
    display: none !important;
}

.text-danger {
    color: #dc3545;
    font-size: 11px;
    margin-top: 3px;
    display: block;
}

.field-note {
    font-size: 10px;
    color: #666;
    margin-top: 2px;
    display: block;
    line-height: 1.3;
}

.input-with-counter {
    position: relative;
}

.digit-counter {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #999;
    background: white;
    padding: 1px 4px;
    border-radius: 2px;
    border: 1px solid #eee;
    font-weight: 500;
    pointer-events: none;
}

/* Ultra-compact form spacing */
.panel-body form > *:not(:last-child) {
    margin-bottom: 14px;
}

/* Responsive adjustments for small screens */
@media (max-height: 700px) {
    .sendcode-wrapper {
        padding: 5px;
    }

    .panel-header {
        padding: 14px 12px;
    }

    .panel-body {
        padding: 16px 12px;
    }

    .auth-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }

        .auth-icon i {
            font-size: 20px;
        }

    .panel-header h2 {
        font-size: 16px;
    }

    .panel-header p {
        font-size: 11px;
    }

    .current-mobile {
        padding: 10px;
        margin-bottom: 12px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .form-control {
        height: 38px;
        font-size: 12px;
    }

    .send-button {
        height: 38px;
        font-size: 13px;
    }

    .back-link {
        margin-top: 12px;
    }
}

@media (max-height: 600px) {
    .sendcode-wrapper {
        align-items: flex-start;
        padding-top: 20px;
    }

    .sendcode-panel {
        max-height: 95vh;
        overflow-y: auto;
    }

    .panel-body {
        padding-bottom: 12px;
    }
}
