/**
 * Public Styles
 */

/* Messages */
.am-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-left: 4px solid;
}

.am-message.am-success {
    background-color: #e5f7e5;
    border-color: #00a32a;
    color: #00712a;
}

.am-message.am-error {
    background-color: #fce8e8;
    border-color: #d63638;
    color: #8b2022;
}

.am-message.am-warning {
    background-color: #fff8e5;
    border-color: #dba617;
    color: #674c00;
}

.am-message.am-info {
    background-color: #f0f6fc;
    border-color: #2271b1;
    color: #1a4d7a;
}

/* Login Container */
.am-login-container {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Tabs */
.am-login-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.am-tab-button {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.am-tab-button:hover {
    color: #2271b1;
}

.am-tab-button.active {
    color: #2271b1;
    border-bottom-color: #2271b1;
}

/* Form Styles */
.am-login-form {
    padding: 20px 0;
}

.am-form-group {
    margin-bottom: 20px;
}

.am-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.am-form-group input[type="email"],
.am-form-group input[type="password"],
.am-form-group input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.am-form-group input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.am-help-text {
    margin-top: 5px;
    font-size: 13px;
    color: #666;
}

/* Button Styles */
.am-button {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.am-button-primary {
    background: #2271b1;
    color: #fff;
    width: 100%;
}

.am-button-primary:hover {
    background: #1a5a8a;
}

.am-button-logout {
    background: #d63638;
    color: #fff;
}

.am-button-logout:hover {
    background: #b32a2c;
}

/* Already Logged In */
.am-already-logged-in {
    max-width: 500px;
    margin: 0 auto;
    background: #f0f6fc;
    border: 1px solid #2271b1;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
}

.am-already-logged-in p {
    margin: 10px 0;
}

/* Account Info */
.am-account-info {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.am-account-info h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

.am-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.am-info-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.am-info-table th {
    text-align: left;
    padding: 12px 15px;
    font-weight: 600;
    color: #666;
    width: 40%;
}

.am-info-table td {
    padding: 12px 15px;
    color: #333;
}

.am-info-table code {
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 14px;
}

.am-status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.am-status-badge.am-status-active {
    background: #e5f7e5;
    color: #00712a;
}

.am-status-badge.am-status-inactive {
    background: #fce8e8;
    color: #8b2022;
}

/* Responsive */
@media (max-width: 600px) {
    .am-login-container,
    .am-already-logged-in,
    .am-account-info {
        padding: 20px;
    }

    .am-tab-button {
        font-size: 14px;
        padding: 10px 15px;
    }

    .am-info-table th,
    .am-info-table td {
        padding: 10px;
    }

    .am-info-table th {
        width: 35%;
        font-size: 14px;
    }
}
