/* Power90 Family Access Page Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding: 20px;
}

.po90-family-access-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    padding: 40px;
}

.po90-access-header {
    text-align: center;
    margin-bottom: 30px;
}

.po90-access-header h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.po90-access-header p {
    color: #666;
    font-size: 14px;
}

.po90-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.po90-alert-error {
    background-color: #fee;
    color: rgb(0, 0, 0);
    border-left: 4px solid #c33;
}

.po90-alert-success {
    background-color: #efe;
    color: #3c3;
    border-left: 4px solid #3c3;
}

/* Child Selection View */
.po90-children-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.po90-child-selector {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    display: block;
}

.po90-child-selector:hover {
    border-color: #667eea;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.po90-child-avatar {
    width: 60px;
    height: 60px;
    background: rgba(212, 212, 212, 1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 30px;
}

.po90-child-name {
    font-weight: 600;
    font-size: 14px;
    word-break: break-word;
}

/* PIN Entry Form */
.po90-pin-form {
    margin-top: 30px;
}

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

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

.po90-form-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.po90-form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.po90-form-input[type="password"] {
    letter-spacing: 4px;
    font-size: 24px;
    text-align: center;
}

.po90-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.po90-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.po90-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.po90-btn-secondary {
    background: #f0f0f0;
    color: #333;
    margin-top: 10px;
}

.po90-btn-secondary:hover {
    background: #e0e0e0;
}

.po90-child-name-display {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.po90-pin-hint {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    text-align: center;
}

.po90-back-link {
    text-align: center;
    margin-top: 20px;
}

.po90-back-link a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
}

.po90-back-link a:hover {
    text-decoration: underline;
}
